package com.xy.p2p.model;

import java.util.Date;


/**
 * Tyedtransferout entity. @author MyEclipse Persistence Tools
 */

public class Tyedtransferout implements java.io.Serializable,Comparable<Tyedtransferout> {

	// Fields

	private Long toid;
	private Tmember Tmember;
	private Ttenderrecord Ttenderrecord;
	private Tuser Tuser;
	private Double toam;
	private Date toamdate;
	private Date revieweddate;
	private Long operator;
	private Date operatedate;
	private Integer status;
	private String remark;

	// Constructors

	/** default constructor */
	public Tyedtransferout() {
	}

	/** full constructor */
	public Tyedtransferout(Tmember Tmember, Tuser Tuser, Double toam, Date toamdate, Date revieweddate, Long operator, Date operatedate, Integer status, String remark,Ttenderrecord ttenderrecord) {
		this.Tmember = Tmember;
		this.Tuser = Tuser;
		this.toam = toam;
		this.toamdate = toamdate;
		this.revieweddate = revieweddate;
		this.operator = operator;
		this.operatedate = operatedate;
		this.status = status;
		this.remark = remark;
		this.Ttenderrecord = ttenderrecord;
	}

	public Long getToid() {
		return toid;
	}

	public void setToid(Long toid) {
		this.toid = toid;
	}

	public Tmember getTmember() {
		return Tmember;
	}

	public void setTmember(Tmember tmember) {
		Tmember = tmember;
	}

	public Tuser getTuser() {
		return Tuser;
	}

	public void setTuser(Tuser tuser) {
		Tuser = tuser;
	}

	public Double getToam() {
		return toam;
	}

	public void setToam(Double toam) {
		this.toam = toam;
	}

	public Date getToamdate() {
		return toamdate;
	}

	public void setToamdate(Date toamdate) {
		this.toamdate = toamdate;
	}

	public Date getRevieweddate() {
		return revieweddate;
	}

	public void setRevieweddate(Date revieweddate) {
		this.revieweddate = revieweddate;
	}

	public Long getOperator() {
		return operator;
	}

	public void setOperator(Long operator) {
		this.operator = operator;
	}

	public Date getOperatedate() {
		return operatedate;
	}

	public void setOperatedate(Date operatedate) {
		this.operatedate = operatedate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Ttenderrecord getTtenderrecord() {
		return Ttenderrecord;
	}

	public void setTtenderrecord(Ttenderrecord ttenderrecord) {
		Ttenderrecord = ttenderrecord;
	}

	@Override
	public int compareTo(Tyedtransferout o) {
		return (int) (o.getToamdate().getTime()-this.getToamdate().getTime());
	}
	
}